package java05;

public class RuntimeTest03 {
    public static void main(String[] args) throws Exception{
        //创建一个Runtime实例对象
        Runtime rt = Runtime.getRuntime();
        //得到表示进程的Process对象
        Process process = rt.exec("notepad.exe");
        //进程睡眠三秒
        Thread.sleep(3000);
        //关闭进程
        process.destroy();
    }
}
